package com.ywj.boot_security.mapper;

import com.ywj.boot_security.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    /**
     * 查询用户信息
     * @param phone
     * @return
     */
    @Select({
            "SELECT" ,
            "user_id userId,user_name userName,password,salt" ,
            "FROM `user`" ,
            "WHERE phone = #{phone}"
    })
    User selUserByPhone(String phone);
}


